<header class="main-header">
    <!-- Logo -->
    <div class="logo">
        <span class="logo-lg">管理系统</span>
    </div>

    <nav class="navbar navbar-static-top">
        <!-- 展开收缩左侧菜单按钮 -->
        <a href="javascript:void(0);" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">收缩菜单</span>
        </a>

        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">

                <li class="dropdown">
                    <a href="<?php echo base_url('/');?>" class="dropdown-toggle" title="管理首页">
                        <i class="fa fa-tachometer"></i>
                    </a>
                </li>

                <li class="dropdown">
                    <a href="/" class="dropdown-toggle" target="_blank" title="网站首页">
                        <i class="fa fa-home"></i>
                    </a>
                </li>

                <!-- 当前管理员信息 -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" title="用户信息">
                        <i class="fa fa-user"></i>
                    </a>
                    <ul class="dropdown-menu" style="border:none;">
                        <li class="user-header">
                            <p><b>用户名：</b><?php echo $this->admin_auth->get_user_info('user_name');?></p>
                            <p><b>角&emsp;色：</b><?php echo $this->admin_auth->get_user_info('user_role');?></p>
                        </li>

                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="#" class="btn btn-default btn-flat" data-toggle="modal" data-target="#userSafeModal" role="button">账号安全</a>
                            </div>
                            <div class="pull-right">
                                <a href="javascript:void(0);" class="btn btn-default btn-flat" role="button" onclick="user_logout();">退出登录</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>